package com.xique.park.bean.domain.client;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xique.common.core.annotation.Excel;
import com.xique.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 系统访问记录对象 gt_login_info
 *
 * @author caogq
 * @date 2021-07-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ParkClientLoginInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    private Long id;

    /**
     * 车场id
     */
    @Excel(name = "车场id")
    private String parkId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long sysUserId;

    /**
     * 岗亭id
     */
    @Excel(name = "岗亭id")
    private Long clientId;

    /**
     * 用户账号
     */
    @Excel(name = "用户名称")
    private String userName;

    /**
     * 用户账号
     */
    @Excel(name = "登录账号")
    private String loginName;


    /**
     * 用户账号
     */
    @Excel(name = "岗亭名称")
    private String clientName;

    /**
     * 登录IP地址
     */
    @Excel(name = "登录IP地址")
    private String ipAddress;

    /**
     * 登录状态（0成功 1失败）
     */
    @Excel(name = "登录状态", readConverterExp = "0=成功,1=失败")
    private String status;

    /**
     * 提示信息
     */
    @Excel(name = "提示信息")
    private String msg;

    /**
     * 访问时间
     */
    @Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date accessTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}
